package com.yunchang.springboot.models.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 获取数据出错记录
 * </p>
 *
 * @author sjd
 * @since 2020-06-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("data_get_error_record")
@ApiModel(value = "DataGetErrorRecordDO对象", description = "获取数据出错记录")
public class DataGetErrorRecordDO extends Model<DataGetErrorRecordDO> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "数据获取出错时间")
    private String date;

    @ApiModelProperty(value = "类型，" +
            "---0:亚马逊MwsApi定时任务" +
            "---1:浏览器亚马逊数据定时任务" +
            "---2:亚马逊广告api定时任务" +
            "---3:马帮api定时任务" +
            "---4:亚马逊部分财务数据计算定时任务" +
            "---5:马帮部分财务数据计算定时任务"
    )
    private Integer type;

    @ApiModelProperty(value = "任务名称")
    private String name;

    @ApiModelProperty(value = "是否处理，0:未处理,1:已处理")
    private Integer isHandle;

    @ApiModelProperty(value = "店铺sellerId")
    private String sellerId;

    @ApiModelProperty(value = "国家代码")
    private String area;

    @ApiModelProperty(value = "错误详情备注")
    private String remark;

    @ApiModelProperty(value = "创建人id")
    private String addUser;

    @ApiModelProperty(value = "记录创建时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
